package me.jessyan.mvparms.demo.mvp.ui.view;

import android.util.TypedValue;

import me.jessyan.mvparms.demo.mvp.ui.fragment.SocialFragment;


/**
 * The author: Zhao X.H.
 * Creation time: 2018/5/8 ${time}
 */

public class CardConfig {
    //屏幕最对同时显示几个item
    public static int  MAX_SHOW_COUNT=4;
    //没一级Scale相差0.05f，translation相差7dp左右
    public static  float SCALE_GAP;
    public static int TRANS_V_GAP;

    public static void initConfig(SocialFragment context){
        MAX_SHOW_COUNT=4;
        SCALE_GAP=0.05f;
        TRANS_V_GAP=(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,15,context.getResources().getDisplayMetrics());
    }
}
